require('dotenv').config()
const env = process.env.NODE_ENV || 'development'

const config = {
  development: {
    dbUrl: process.env.DEV_DB_URL,
    port: process.env.DEV_PORT,
  },
  production: {
    dbUrl: process.env.PROD_DB_URL,
    port: process.env.PROD_PORT,
  },
  test: {
    dbUrl: process.env.TEST_DB_URL,
    port: process.env.TEST_PORT,
  },
}

module.exports = config[env]
